SSH connection problem on jailbroken iPod Touch

Category: Geeks r Us

Post 1 by LeoGuardian (You mean there is something outside of this room with my computer in it?) on Friday, 29-Jun-2012 0:59:16

Hello,

I did not put this into Cell Phone Talk because although it's a mobile device, its more a geeky question and most the shiny happy texters out there aren't jailbreaking their devices. So apologies if a CL is tasked to move it.
So since I got my iPhone 4S, I took all the data off the iPod Touch and removed the iCloud settings from that device. I want to continue to use it when working out, but now that it's no longer my personal and Coast Guard device, inquiring minds want to know: I jailbroke it with Greenp0ison I believe it's called, the Lifehacker recommendation, which comes with high reviews.
Easy to do, simple Windows semi-console app.
I then proceeded to install a ton of packages and was quite abnormally nerdy happy to see it installing lots of good stuff from the Debian repositories as well as some other familiar shell and cmd tools. Then I clicked the 'Get OpenSSH' widget on Cydia's main screen, installed that, and also installed SBSettings. A bit of work to see to it that I could in fact run the thing from the springborad, looks like SSH is turned on.
Attempted a login as root with both passwords - alpine and dottie - both of which produced a timeout error. I was using Terraterm and Putty but went over to WinSCP which does have SSH - did so because Putty wants you to change the timeout in CurrentControlSet in the registry while Terraterm just doesn't seem to have a timeout setting at all.
Anyway figured I could use Commander in the shell and Explorer view if I felt like not typing path strings. WinSCP does both.
But in any event, getting Timeout errors.
Worse? I can't ping my device. Kidding? Did the shiny "Beautiful" Apple people disable Ping on these devices?
Anyway this is why I put the topic in Geeks R Us: Most cell phone people shouldn't be doing this and would be yawning by about the second paragraph. I understand: I got kids.
But if you have had this timeout problem and fixed it, would be glad to know. I know there's lots of reasons to jailbreak a device, but SSH / general probing around and doing minor to dangerous mods myself was an idea of fun ... so, interested in any responses.

Post 2 by b3n (I'm going for the prolific poster awards!) on Monday, 02-Jul-2012 19:52:26

Hi,

Are you by any chance trying to connect when the phone is locked? For some reason this won't work; you have to connect whilst on one of your homescreens, afterwhich the device will autolock whilst still allowing you to control it.
I've just tried pinging my phone and it responds, so I think there might be something else going on here, not sure what though. How helpfull.

Post 3 by LeoGuardian (You mean there is something outside of this room with my computer in it?) on Tuesday, 03-Jul-2012 13:21:13

Hmm. I was unlocked, but may not have been on a home screeen.
Do you have the settings from Big Boss, or does it matter how you install SBSettings? It's actually a bit tricky to verify that SSH is in fact turned on. Do you have another idea for a skin or interface to SBSettings? The OpenSSH installer asked no question, just installed the packages from the repository.
I also tried renewing the lease for the IP address by clicking the arrow or 'More Info' to the right of the wi fi connection in Settings.
I wish there was a SSH I could connect to remotely someplace so I could make sure I wasn't doing something stupid on my computer. SSH being what it is, it's not exactly something one can test that often.

Thanks for your response though. I had read about the unlocking the device, after I'd been fooling around awhile.

Thanks

Post 4 by b3n (I'm going for the prolific poster awards!) on Sunday, 08-Jul-2012 20:52:07

Hi,

sbSettings does take a bit of getting used to, agreed. Infact, the SSH toggle shows up even if openSSH isn't installed, so just because you see the option to turn it on it doesn't actually mean its been installed. One possible way of checking would be to get an SSH client from the appstore like prompt. Its not the cheapest app but it has great accessibility and will come in handy if you intend to SSH to other machines from your device often. Once installed, if you have openSSH installed correctly, you can just connect to localhost and login with user: root and password: alpine and you'll have root on your device.
Its worth baring in mind that anything that can be toggled from sbSettings can be assigned a jesture via settings > activator, so for example, I have mine set to go into airoplane mode by pressing the volume up & down buttons at the same time, there by bypassing the sbSettings interface.

I'm guessing that openSSH is working but for some reason you can't talk to it from the computer; not getting pings is a bit weird.

Cheers.

Post 5 by LeoGuardian (You mean there is something outside of this room with my computer in it?) on Monday, 09-Jul-2012 0:19:35

Hmm that's what I thought, and thanks. I have been distracted with many another thing, helping the teenager, helping the wife on her current phone to be wireless and ready for her big conference this summer, and the typical work and Coast Guard Duties / crossfit PT / training but I am glad these boards are fixed in that I can return to this and get reminded to get Settings Activator.
OpenSSH is installed, because Cydia undid some packages on install of OpenSSH plus if I go into Cydia on the home tab and click on OpenSSH the button at the top right corner now says 'modify' not 'install'. I could go into Modify and see if the proper conponents are there.
Thanks for the responses.